package model.index.dao;

import java.util.List;

import org.apache.ibatis.session.SqlSession;

import model.index.dto.Class1Dto;
import model.index.dto.RecipeDto;

public class IndexDaoImpl implements IndexDao {
	private SqlSession sqlSession;
	public void setSqlSession(SqlSession sqlSession) {
		this.sqlSession = sqlSession;
	}
	
	@Override
	public List<Class1Dto> classList() {
		List<Class1Dto> list = sqlSession.selectList("index.classList");
		return list;
	}

	@Override
	public List<RecipeDto> recipeList() {
		List<RecipeDto> list = sqlSession.selectList("index.recipeList");
		return list;
	}

	@Override
	public List<RecipeDto> cmtList() {
		List<RecipeDto> list = sqlSession.selectList("index.cmtList");
		return list;
	}

}
